package cn.YstHome.service.impl;

import cn.YstHome.dao.YstHomeDao;
import cn.YstHome.service.YstHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("ystHomeService")
public class YstHomeServiceImpl implements YstHomeService {
    @Autowired
    YstHomeDao ystHomeDao;

    /**
     * 获取导航信息
     */
    public List<Map<String, Object>> getYstInfoNav(Map<String, Object> params) {
        return ystHomeDao.getYstInfoNav(params);
    }

    /**
     * 根据导航获取当前界面所需的数据
     */

    public Map<String, Object> getYstInfo(Map<String, Object> params) {
        return  ystHomeDao.getYstInfo(params);
    }
}
